﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using Aliphant.UI.Forms.Notify;

using static System.Net.Mime.MediaTypeNames;

namespace ModuleTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void btn1_Click(object sender, RoutedEventArgs e)
        {
            var button = sender as Button;
            if (button == null)
            {
                return;
            }
            string icon = $"Icon.{button.ToolTip}";
            Clipboard.SetDataObject(icon);
            NotifyIconHelper.ShowBalloon(message: "已复制到剪切板", title: icon, timeout: 0, icon: NotifyIconHelper.NotifyLevel.Info);
        }
    }
}